Working Light Tutorial....

1. create a switch by selecting animate_equipment_electric-switch-nopulse
2. give it a targetname of lightswitch
3. create a trigger_use around the switch and give it a targetname of lightswitch_trigger
4. Add a lamp to the ceiling. The best one to use is bunker-cagelight.
5. now create a script_origin with a KEY of model and a VALUE of static/corona_reg.tik and give it a targetname of corona

The script_origin will now look like a corona. place that within the lamp as you see fit.

6. now create a script_model with a KEY of model and a VALUE of fx/dummy.tik and give it a targetname of light
7. place that script_model where you would like the light to be.

Now comes the scripting for this light.

*i assume u already created an SCR file for your map*

1. right below Level Waittill Spawn type this.

thread lightswitch1

2. after that you will see the word, end.
3. right after the word end, type this.

lightswitch1:
	$light light 1 1 1 305
	$lightswitch_trigger triggerable
	$lightswitch_trigger waittill trigger
	$lightswitch_trigger nottriggerable
	$lightswitch anim turn
	$lightswitch playsound alarm_switch
	wait .5
	thread lightoff
end

lightoff:
	$light light 0 0 0 64
	$corona hide
	wait .5
	thread lightswitch2
end

lightswitch2:
	$lightswitch_trigger triggerable
	$lightswitch_trigger waittill trigger
	$lightswitch_trigger nottriggerable
	$lightswitch anim off
	$lightswitch playsound alarm_switch
	wait .5
	thread lighton
end

lighton:
	$light light 1 1 1 305
	$corona show
	wait .5
	thread lightswitch1
end

----------------------------

thats the script for it. follow all those directions and compile your map using -vis and -mohlight and you will have a working lightswitch.

GOOD LUCK!
